;Assembler header file for MimeMap
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:11:42 2005
;Tom Hughes, tom@compton.nu, 15 Feb 2000

        [       :LNOT: :DEF: MimeMap_Hdr
        GBLS    MimeMap_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

;Symbols for constants
MimeMap_FormatFiletype          *       &0
MimeMap_FormatFiletypeName      *       &1
MimeMap_FormatMIMEType          *       &2
MimeMap_FormatExtension         *       &3

;Symbols for structure offsets and sizes
                                ^       0
                                #       Int
MimeMap_Format                  *       @


;Symbols for SWI's and SWI reason codes
XMimeMap_Translate              *       &70B00
MimeMap_Translate               *       &50B00

MimeMapTranslate_FiletypeToFiletypeName *       &0
   ;Entry
   ;  R0 = &0
   ;  R1 = file_type (Bits)
   ;  R2 = &1
   ;  R3 = file_type_name (pointer to String)

MimeMapTranslate_FiletypeToMIMEType *       &0
   ;Entry
   ;  R0 = &0
   ;  R1 = file_type (Bits)
   ;  R2 = &2
   ;  R3 = mime_type (pointer to String)

MimeMapTranslate_FiletypeToExtension *       &0
   ;Entry
   ;  R0 = &0
   ;  R1 = file_type (Bits)
   ;  R2 = &3
   ;  R3 = extension (pointer to String)

MimeMapTranslate_FiletypeNameToFiletype *       &1
   ;Entry
   ;  R0 = &1
   ;  R1 -> file_type_name (String)
   ;  R2 = &0
   ;Exit
   ;  R3 = file_type (Bits)

MimeMapTranslate_FiletypeNameToMIMEType *       &1
   ;Entry
   ;  R0 = &1
   ;  R1 -> file_type_name (String)
   ;  R2 = &2
   ;  R3 = mime_type (pointer to String)

MimeMapTranslate_FiletypeNameToExtension *       &1
   ;Entry
   ;  R0 = &1
   ;  R1 -> file_type_name (String)
   ;  R2 = &3
   ;  R3 = extension (pointer to String)

MimeMapTranslate_MIMETypeToFiletype *       &2
   ;Entry
   ;  R0 = &2
   ;  R1 -> mime_type (String)
   ;  R2 = &0
   ;Exit
   ;  R3 = file_type (Bits)

MimeMapTranslate_MIMETypeToFiletypeName *       &2
   ;Entry
   ;  R0 = &2
   ;  R1 -> mime_type (String)
   ;  R2 = &1
   ;  R3 = file_type_name (pointer to String)

MimeMapTranslate_MIMETypeToExtension *       &2
   ;Entry
   ;  R0 = &2
   ;  R1 -> mime_type (String)
   ;  R2 = &3
   ;  R3 = extension (pointer to String)

MimeMapTranslate_ExtensionToFiletype *       &3
   ;Entry
   ;  R0 = &3
   ;  R1 -> extension (String)
   ;  R2 = &0
   ;Exit
   ;  R3 = file_type (Bits)

MimeMapTranslate_ExtensionToFiletypeName *       &3
   ;Entry
   ;  R0 = &3
   ;  R1 -> extension (String)
   ;  R2 = &1
   ;  R3 = file_type_name (pointer to String)

MimeMapTranslate_ExtensionToMIMEType *       &3
   ;Entry
   ;  R0 = &3
   ;  R1 -> extension (String)
   ;  R2 = &2
   ;  R3 = mime_type (pointer to String)

        ]
        END
